<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<%
	String path = request.getContextPath() + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=path%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加项目分类</title>
<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" />
<link href="css/reg.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/base.css" type="text/css" />

<link rel="stylesheet" href="admin/css/bootstrap.min.css" />
<link rel="stylesheet" href="admin/css/dashboard.css" />
</head>
<body>
	<!--上部导航栏start-->
	<nav class="navbar navbar-inverse navbar-fixed-top">
		<div class="container-fluid">
			<!-- 头 -->
			<%@include file="/WEB-INF/admin/import/header.jsp"%>
		</div>
	</nav>
	<!--上部导航栏end-->
	<div class="container-fluid">
		<div class="row">
			<%@include file="/WEB-INF/admin/import/tisch.jsp"%>
			<!--左侧导航栏end-->
			<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
				<h1 class="page-header">添加项目分类</h1>

				<div class="panel panel-default"></div>
				<div class="panel panel-default">
					<div class="panel-heading">
						<div class="panel-title">添加项目</div>
					</div>
					<div class="panel-body">

						<div class="table-responsive ">

							<div class="product-form">
								<form  method="post" action="admin/addclassity" >
									<div class="my-form text-center">


										<div class="product-input">
											<input class="text" name="name" type="text"
												placeholder="项目类型">
										</div>

										<div class="product-input">
											<input class="text" name="detail" type="text"
												placeholder="项目详细描述">
										</div>
									</div>

									<div class="product-select">
										<div class="select-type">
											<select name="status" id="type" class="select-cla">

												<option value="1">可用</option>
												<option value="0">禁用</option>

						
											</select>
										</div>
									</div>
									&nbsp;&nbsp;
									<!-- <button onclick="save()" type="submit"
										class="btn btn-default btn-primary pull-right">添加</button> -->
										 <input type="submit" class="btn btn-default btn-primary pull-right" value="提交" />
								</form>
							</div>

						</div>
					</div>
				</div>

			</div>
		</div>
	</div>
	<script type="text/javascript" src="admin/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="admin/js/countUp.js"></script>


	<!-- <script type="text/javascript">
	function save(){
		var formData = new FormData($("#submit")[0]); //用form 表单直接 构造formData 对象; 就不需要下面的append 方法来为表单进行赋值了。 
		$.ajax({
			url : 'admin/addclassity',
			type : 'POST',
			async : true,
			data : formData,
			dataType : 'json',
			contentType : false, //必须false才会自动加上正确的Content-Type 
			processData : false, //必须false才会避开jQuery对 formdata 的默认处理   	
			success : function(data) {
				if (data.code == 200) {
					alert("保存错草稿成功");
					window.location.href="/Crowdfunding/admin/addclassity";
				} else {
					alert("保存草稿失败,可能未登录");
				}
			},
			error : function(msg) {
				alert("网络异常,保存草稿失败");
			}
		});

	}
	</script> -->

</body>
</html>